﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class LopHocBLL
    {
        private LopHocDAL dal;

        public LopHocBLL()
        {
            try
            {
                dal = new LopHocDAL();
            }
            catch { throw; }
        }

        public List<LopHocEntity> getAll()
        {
            try
            {
                return dal.getAll();
            }
            catch { throw; }
        }

        public LopHocEntity getById(int _id)
        {
            try
            {
                return dal.getById(_id);
            }
            catch { throw; }
        }

        public List<LopHocEntity> getByVuDieuId(int _id)
        {
            try
            {
                return dal.getByVuDieuId(_id);
            }
            catch { throw; }
        }

        public int addLopHoc(LopHocEntity _obj)
        {
            try
            {
                return dal.addLopHoc(_obj);
            }
            catch { throw; }
        }

        public int deleteLopHoc(int _id)
        {
            try
            {
                return dal.deleteLopHoc(_id);
            }
            catch { throw; }
        }

        public int updateLopHoc(LopHocEntity _obj)
        {
            try
            {
                return dal.updateLopHoc(_obj);
            }
            catch { throw; }
        }
    }
}
